//将秒数转换为时分秒格式
function formatSeconds(value) {
    var theTime = parseInt(value);// 秒

    if(theTime === 0){
        return '0秒钟'
    }

    var middle = 0;// 分
    var hour = 0;// 小时

    if (theTime > 60) {
        middle = parseInt(theTime / 60);
        theTime = parseInt(theTime % 60);
        if (middle > 60) {
            hour = parseInt(middle / 60);
            middle = parseInt(middle % 60);
        }
    }
    let theTimeNum = parseInt(theTime)
    // 出现 1分5秒 前补零为 1分05秒
    let result = "" + (Array(2).join(0) + theTimeNum).slice(-2) + "秒";
    if (theTimeNum === 0) {
        result = "钟"
    }
    if (middle > 0) {
        result = "" + parseInt(middle) + "分" + result;
    }
    if (hour > 0) {
        result = "" + parseInt(hour) + "小时" + result;
    }
    return result;
}
